/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author JArik
 */
public class Company {

    private String name, tel;
    private int regNr, id;
    private String [] address;

    public Company(int i, String nam, int reg)
    {
        name = nam;
        regNr = reg;
        id = i;
    }
    public String getStreet()
    {
        if(address != null)
          return address[0];
        else
          return "";
    }
    public void setAddress(String adr)
    {
        if(adr != null)
          address = adr.split("\n");
    }
    public String getTel()
    {
        return tel;
    }
    public void setTel(String t)
    {
        tel = t;
    }
    public int getRegNr()
    {
        return regNr;
    }
    public String getName()
    {
        return name;
    }
    public void setName(String n)
    {
        name = n;
    }

}
